]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Group tray icon stuff together
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 8 Jul 2014 18:15:24 +0000 (14:15 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 8 Jul 2014 19:39:46 +0000 (15:39 -0400)
js/ui/notificationDaemon.js

index f596e890161a32d43e403e2b2c6f3a0d55f2db9e..c2aeb15020f2650090a2af0c9f4674df2ab18666 100644 (file)
@@ -120,15 +120,12 @@ const FdoNotificationDaemon = new Lang.Class({
 
         this._nextNotificationId = 1;
 
+        Shell.WindowTracker.get_default().connect('notify::focus-app', Lang.bind(this, this._onFocusAppChanged));
+        Main.overview.connect('hidden', Lang.bind(this, this._onFocusAppChanged));
+
         this._trayManager = new Shell.TrayManager();
         this._trayIconAddedId = this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded));
         this._trayIconRemovedId = this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved));
-
-        Shell.WindowTracker.get_default().connect('notify::focus-app',
-            Lang.bind(this, this._onFocusAppChanged));
-        Main.overview.connect('hidden',
-            Lang.bind(this, this._onFocusAppChanged));
-
         this._trayManager.manage_screen(global.screen, Main.messageTray.actor);
     },